Piwik\Plugins\GeoIp2\GeoIP2AutoUpdater D

Total Complexity 130
Dependencies 20
Dependents 5
Total lines 842
Lines of code 491
Logical lines of code 296
Comment lines 173
Methods 32
Properties 1

Methods 32

Method Rating Maintainability Complexity Lines of code
unzipDownloadedFile()
C
30 27 113
performRedundantDbChecks()
A
47 8 35
checkGeoIPUpdateUrl()
A
51 8 24
downloadFile()
S
47 6 35
setUpdaterOptions()
S
51 6 25
checkForSupportedArchiveType()
S
62 6 11
update()
S
52 5 26
__construct()
S
53 5 23
renameAnyExtraGeolocationDatabases()
S
54 5 21
updateDbIpUrlOption()
S
61 5 13
getGeoIPUrlExtension()
S
57 4 17
fetchPaidDbIpUrl()
S
59 4 14
isAtLeastOneGeoIpDbOutOfDate()
S
60 4 13
getMissingDatabases()
S
60 4 13
getZippedFilenameToDownloadTo()
S
59 4 12
isUpdaterSetup()
S
67 3 8
getPreviousScheduledTime()
S
64 3 9
setUpdaterOptionsFromUrl()
S
62 2 11
getOldAndNewPathsForBrokenDb()
S
67 2 8
getLastRunTime()
S
74 2 4
getTemporaryFolder()
S
76 2 3
getRescheduledTime()
S
69 2 7
getSchedulePeriod()
S
69 2 7
getConfiguredUrl()
S
68 2 7
getConfiguredUrls()
S
68 2 7
getNextRunTime()
S
72 1 5
performUpdate()
S
76 1 4
getDbIpUrlWithLatestDate()
S
74 1 4
isDbIpUrl()
S
78 1 3
isPaidDbIpUrl()
S
78 1 3
fetchUrl()
S
80 1 3
removeDateFromUrl()
S
78 1 3